package com.ruoyi.project.tool.swagger.UserController;

import com.ruoyi.framework.aspectj.lang.annotation.SignatureValidation;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.system.domain.SysInformation;
import com.ruoyi.project.system.service.ISysInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/mobileUser/platform/")
public class UserPlatformController {

    @Autowired
    private ISysInformationService sysInformationService;
    /**
     *  用户端平台信息
     *   information_type  = 1 用户端
     */
    @SignatureValidation
    @PostMapping("UserInformation")
    public AjaxResult userInformation(SysInformation sysInformation){
        return AjaxResult.success(sysInformationService.queryInformation(sysInformation));
    }
}
